package com.drinks.yiniang.common.recycler.scroller;

import android.content.Context;
import android.support.v7.widget.LinearSmoothScroller;

/**
 * @author han
 * @date 2019/11/8
 */
public class ItemSmoothScroller extends LinearSmoothScroller {

    public ItemSmoothScroller(Context context) {
        super(context);
    }

    @Override
    protected int getHorizontalSnapPreference() {
        return SNAP_TO_START;//具体见源码注释
    }

    @Override
    protected int getVerticalSnapPreference() {
        return SNAP_TO_START;//具体见源码注释
    }
}
